Optimal. Leaf size=64 \[ \frac {x^2}{4}-\frac {x \sqrt {-1+a x} \sqrt {1+a x} \cosh ^{-1}(a x)}{2 a}-\frac {\cosh ^{-1}(a x)^2}{4 a^2}+\frac {1}{2} x^2 \cosh ^{-1}(a x)^2 \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.16, antiderivative size = 64, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 4, integrand size = 8, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.500, Rules used = {5883, 5939,
5893, 30} \begin {gather*} -\frac {\cosh ^{-1}(a x)^2}{4 a^2}+\frac {1}{2} x^2 \cosh ^{-1}(a x)^2-\frac {x \sqrt {a x-1} \sqrt {a x+1} \cosh ^{-1}(a x)}{2 a}+\frac {x^2}{4} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 30
Rule 5883
Rule 5893
Rule 5939
Rubi steps
\begin {align*} \int x \cosh ^{-1}(a x)^2 \, dx &=\frac {1}{2} x^2 \cosh ^{-1}(a x)^2-a \int \frac {x^2 \cosh ^{-1}(a x)}{\sqrt {-1+a x} \sqrt {1+a x}} \, dx\\ &=-\frac {x \sqrt {-1+a x} \sqrt {1+a x} \cosh ^{-1}(a x)}{2 a}+\frac {1}{2} x^2 \cosh ^{-1}(a x)^2+\frac {\int x \, dx}{2}-\frac {\int \frac {\cosh ^{-1}(a x)}{\sqrt {-1+a x} \sqrt {1+a x}} \, dx}{2 a}\\ &=\frac {x^2}{4}-\frac {x \sqrt {-1+a x} \sqrt {1+a x} \cosh ^{-1}(a x)}{2 a}-\frac {\cosh ^{-1}(a x)^2}{4 a^2}+\frac {1}{2} x^2 \cosh ^{-1}(a x)^2\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.04, size = 58, normalized size = 0.91 \begin {gather*} \frac {a^2 x^2-2 a x \sqrt {-1+a x} \sqrt {1+a x} \cosh ^{-1}(a x)+\left (-1+2 a^2 x^2\right ) \cosh ^{-1}(a x)^2}{4 a^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 1.64, size = 58, normalized size = 0.91
method | result | size |
derivativedivides | \(\frac {\frac {a^{2} x^{2} \mathrm {arccosh}\left (a x \right )^{2}}{2}-\frac {a x \,\mathrm {arccosh}\left (a x \right ) \sqrt {a x -1}\, \sqrt {a x +1}}{2}-\frac {\mathrm {arccosh}\left (a x \right )^{2}}{4}+\frac {a^{2} x^{2}}{4}}{a^{2}}\) | \(58\) |
default | \(\frac {\frac {a^{2} x^{2} \mathrm {arccosh}\left (a x \right )^{2}}{2}-\frac {a x \,\mathrm {arccosh}\left (a x \right ) \sqrt {a x -1}\, \sqrt {a x +1}}{2}-\frac {\mathrm {arccosh}\left (a x \right )^{2}}{4}+\frac {a^{2} x^{2}}{4}}{a^{2}}\) | \(58\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.33, size = 73, normalized size = 1.14 \begin {gather*} \frac {a^{2} x^{2} - 2 \, \sqrt {a^{2} x^{2} - 1} a x \log \left (a x + \sqrt {a^{2} x^{2} - 1}\right ) + {\left (2 \, a^{2} x^{2} - 1\right )} \log \left (a x + \sqrt {a^{2} x^{2} - 1}\right )^{2}}{4 \, a^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.13, size = 60, normalized size = 0.94 \begin {gather*} \begin {cases} \frac {x^{2} \operatorname {acosh}^{2}{\left (a x \right )}}{2} + \frac {x^{2}}{4} - \frac {x \sqrt {a^{2} x^{2} - 1} \operatorname {acosh}{\left (a x \right )}}{2 a} - \frac {\operatorname {acosh}^{2}{\left (a x \right )}}{4 a^{2}} & \text {for}\: a \neq 0 \\- \frac {\pi ^{2} x^{2}}{8} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: TypeError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.02 \begin {gather*} \int x\,{\mathrm {acosh}\left (a\,x\right )}^2 \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________